package com.oop;

public class Test9 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println("name="+person.name+"age="+person.age);
    }
}

class Person{
    String name;
    int age;
    public Person(String Name,int Age){
        name=Name;
        age=Age;
    }
    public Person(){
        this("未命名",0);//调用上面的构造方法
    }
}